/*
 * 中北大学软件学院版权所有2020-2025
 */
package nuc.lp.uolab.labmember.service;

import java.util.List;

import nuc.lp.uolab.labmember.dao.LabMemberDao;
import nuc.lp.uolab.labmember.dao.LabMemberDaoImpl;
import nuc.lp.uolab.labmember.vo.LabMember;

/**
 *
 * @author liupeng
 * @version 1.0
 */
public class LabMemberServiceImpl implements LabMemberService{
	/*
	 * 创建LabMemberDao对象，当前类要使用它
	 */
	LabMemberDao LabMemberDao = new LabMemberDaoImpl();
	
	
	@Override
	public List<LabMember> findtMembers(String labmembername, String grade, String telephone, String dept, String major,
			String status, String job) {
		return LabMemberDao.selectLabMember(labmembername, grade, telephone, dept, major, status, job);
	}

	@Override
	public int modifyLabMember(LabMember labmember) {
		int count = LabMemberDao.updateLabMember(labmember);
		return count;
	}

	@Override
	public boolean addLabMember(LabMember labmember) {
		boolean flag = LabMemberDao.insertLabMember(labmember);
		return flag;
	}

}
